@model IEnumerable<RB2012.ViewModel.Tutorial>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
<p>@Html.ActionLink("Create New", "Create")</p>
<p>@Html.ActionLink("Sign Out", "LogOff", "Account")</p>
<table>
<tr>
<th>Tutorial Name</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>@Html.DisplayFor(modelItem => item.TutorialName)</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.TutorialID }) |
@Html.ActionLink("Details", "Details", new { id=item.TutorialID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.TutorialID })
</td>
</tr>
}
</table>
